package day_05_02_ThreadPool;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;

/**
 * @Description ThreadPoolExecutor 底层源码学习
 * @Author shihan
 * @Date 2020/11/8 10:13
 * @Version 1.0
 */
public class ThreadPoolExecutorDemo {

    public static void main(String[] args) {
        /**
         * 创建获取线程池的方式看似有三种，其实看到里面的源码后，本质只有一种方式，就是 ThreadPoolExecutor
         */
        Executors.newFixedThreadPool(5);
        Executors.newSingleThreadExecutor();
        Executors.newCachedThreadPool();

    }

}
